package cn.legend.travel.basic.info.pojo.param;


import cn.legend.travel.common.validation.account.UserRules;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 用户登录的参数类
 *
 * @author java@tedu.cn
 * @version 2.0
 */
@Data
public class UpdateInfoParam implements Serializable, UserRules {

    /**
     * 昵称
     */
    @ApiModelProperty(value = "昵称", example = "xionghaochen")
    @NotBlank(message = "昵称不能为空！")
    private String nickname;

    /**
     * 性别，0：保密；1：男；女：2
     */
    @ApiModelProperty(value = "性别", example = "0")
    private Integer sex;

    /**
     * 居住城市
     */
    @ApiModelProperty(value = "居住城市", example = "重庆")
    private String city;

    /**
     * 出生日期
     */
    @ApiModelProperty(value = "出生日期", example = "2017")
    private LocalDateTime birthday;

    /**
     * 简介
     */
    @ApiModelProperty(value = "简介", example = "这个人没什么好看的...")
    private String brief;

}
